package egovframework.rte.Lunch.web;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import egovframework.rte.Lunch.service.ReviewService;
import egovframework.rte.Lunch.service.ReviewVO;

/*Review_list를 제외한 모든 화면연결 ..*/
@Controller
public class ReviewController {
	@Resource
	private ReviewService  reviewservice;//AccountServiceImpl에 주입시키기위해!

	
	
	/*리스트에서 등록버튼을 누른다. */
	@RequestMapping(value = "/Review/insert.do")
	public String Review_insert() { 
		System.out.println("Review insert in~!");
		return "/Review/insert";
	}
	
	@RequestMapping(value="/Review/addReview.do")
	public String addReview(HttpServletRequest reqst, ReviewVO reviewInfo){
		System.out.println("<<ReviewController>>");
		reviewInfo.printInfo();
		this.reviewservice.addReview(reviewInfo);
		return "/Review/addResult";
	}
	
	///
	
}
